package com.moss.cloud.base.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.moss.cloud.base.api.model.param.FlowBusinessParam;
import com.moss.cloud.base.api.model.vo.FlowBusinessVO;
import com.moss.cloud.base.biz.model.FlowBusiness;
import org.apache.ibatis.annotations.Param;


/**
 * 业务流程DAO
 *
 * @author 瑾年
 * @date 2024-03-06
 */
public interface FlowBusinessMapper extends BaseMapper<FlowBusiness> {


    /**
     * 业务流程分页-我的申请分页
     *
     * @param page
     * @param tenantId
     * @param param
     * @return
     */
    IPage<FlowBusinessVO> flowBusinessPage(Page page, @Param("tenantId") Long tenantId, @Param("param") FlowBusinessParam param,@Param("userId") Long userId);

    /**
     * 业务流程详情
     *
     * @param tenantId
     * @param id
     * @return
     */
    FlowBusinessVO flowBusinessDetail(@Param("tenantId") Long tenantId, @Param("id") Long id);
}
